// menu 格式化为 route 格式
function userFormat(user) {
  return {
    id: user.id,
    username: user.username,
    password: user.password,
    email: user.email,
    phoneNumber: user.phone_number,
    nickName: user.nick_name,
    avatar: user.avatar,
    domain: user.domain,
    builtIn: user.built_in,
    status: user.status,
  }
}

module.exports = {
  userFormat
}
